
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    padding: 50px;
    text-align: center;
    background: url("imagenes/lol.jpg") no-repeat center center;
    background-size: cover;
    color: white;
}


h1 img {
    width: 600px;
    max-width: 90%;
    height: auto;
    border-radius: 12px;
    transition: 0.3s;
}

h1 img:hover {
    box-shadow: 0 0 20px rgba(255, 60, 0, 0.6);
    transform: scale(1.02);
}


ol {
    display: flex;
    justify-content: center;
    gap: 20px;
    list-style: none;
    margin-top: 20px;
    flex-wrap: wrap;
}

li {
    font-size: 20px;
}

li a {
    color: red;
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 8px;
    transition: 0.3s;
}

li a:hover {
    background: red;
    color: black;
}


section:nth-child(1) {
    font-size: 22px;
    padding: 60px 20px;
    max-width: 900px;
    margin: auto;
}


.coches {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
    margin-top: 40px;
}


.carta {
    width: 350px;
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.carta:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}


.frente {
    background: rgba(255, 255, 255, 0.95);
    color: black;
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid #222;
}

.frente img {
    width: 100%;
    height: 260px;
    object-fit: cover;
}


.frente h3 {
    padding: 15px;
    font-size: 20px;
}


a {
    color: red;
    text-decoration: none;
}


p {
    color: white;
    font-size: 17px;
}


@media screen and (max-width: 768px) {
    body {
        padding: 20px;
    }

    ol {
        flex-direction: column;
        gap: 10px;
    }

    .carta {
        width: 90%;
    }

    section:nth-child(1) {
        font-size: 18px;
    }
}


@media screen and (max-width: 480px) {
    body {
        padding: 20px;
        background-size: cover;
    }

    section:nth-child(1) {
        font-size: 20px;
        padding-top: 50px;
    }

    .coches {
        flex-direction: column;
        gap: 20px;
    }

    .carta {
        width: 90%;
        height: auto;
        margin-top: 30px;
        padding: 5px;
    }

    .frente img {
        width: 100%;
        height: auto;
    }

    ol {
        flex-direction: column;
        text-align: center;
        padding: 0;
    }

    li {
        width: 100%;
        font-size: 18px;
        margin: 5px 0;
        justify-content: center;
    }

    .frente h3 {
        font-size: 18px;
    }

    p {
        font-size: 15px;
    }
}